Learning Flex Basics (Part 1): Creating Your First Flex Application
Table of Contents
- Introduction
- A Brief Overview of Macromedia Flex
- Building the Application
- Create the Application Object
- Add a Panel for the Application Layout
- Add a Label for the View Header
- Add an Array of Objects to Define the Coffee Blends
- Add a ComboBox to Display the Coffee Blends
- Add a Text Control to Display the Description
- Add a Button to Add a Coffee Blend to the Shopping Cart
- Add a List Control for the Shopping Cart
- Add a Script to Handle the Button Click Event
- Complete Code Listing for firstapp.mxml
- Where to Go From Here
Where to Go from Here
In this simple application, you have learned about several core building blocks for Flex applications: containers, controls, data models, data-binding, and event handlers. Continue on to the following tutorials to learn more:
- Learning Flex Basics (Part 2): Creating a Flex Calculator
- Learning Flex Basics (Part 3): Working with Containers
- Learning Flex Basics (Part 4): Working with Data Models
If you prefer, you can download the entire set of tutorials, Learning Flex Series (Parts 1-4). If you like what you see and want to get more experience with Flex, Macromedia Customer Training offers Fast Track to Macromedia Flex, a two-day onsite training course to jump-start Flex development in your organization. You should also look at the informative set of sample applications in included with Flex; these illustrate the use of many Flex features. You can also read the next tutorial online at: Building a Simple Calculator with Macromedia Flex.